package com.han.school.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class InitController {

    @RequestMapping("/loginInit")
    public String loginInit(){
        return "user/login";
    }

    @RequestMapping("/indexInit")
    public String indexInit(){
        return "index";
    }

    @RequestMapping("/registerInit")
    public String registerInit(){
        return "user/register";
    }

    @RequestMapping("/studentInit")
    public String studentInit(){
        return "student/student";
    }

    @RequestMapping("/teacherInit")
    public String teacherInit(){
        return "teacher/teacher";
    }

    @RequestMapping("/hourInit")
    public String hourInit(){
        return "student/hour";
    }


    @RequestMapping("/eventInit")
    public String eventInit(){
        return "event/event";
    }

    @RequestMapping("/photoInit")
    public String photoInit(){
        return "event/photo";
    }

    @RequestMapping("/docInit")
    public String docInit(){
        return "event/add_doc";
    }

    @RequestMapping("/cardsInit")
    public String cardsInit(){
        return "student/cards";
    }

    @RequestMapping("/jixiaoInit")
    public String jixiaoInit(){
        return "teacher/jixiao";
    }

    @RequestMapping("/loginout")
    public String loginIn(HttpSession session){
        session.invalidate();
        return "user/login";
    }

    @RequestMapping("/pwdInit")
    public String pwd(){
        return "user/lyear_pages_edit_pwd";
    }

}
